import  {xsEntity} from '../commentity';
import { Column ,Entity, ManyToOne} from 'typeorm';
import { UserEntity } from './user';

/**
 * 描述
 */
@Entity()
export class AddressEntity extends xsEntity {
  

  @ManyToOne(() =>UserEntity , UserEntity => UserEntity.payAddress)
  userid :UserEntity


  @Column({ comment: '邮箱地址' ,default:null})
  email: string;
  @Column({ comment: '收件人名字',default:null })
  shippingFirstName: string;
  @Column({ comment: '收件人姓氏',default:null })
  shippingLastName: string;
  @Column({ comment: '送货地址' ,default:null})
  shippingAddress: string;
  @Column({ comment: '城市' ,default:null})
  shippingCity: string;
  @Column({ comment: '州/省',default:null })
  shippingState: string;
  @Column({ comment: '邮编' ,default:null })
  shippingZipCode: string;
  @Column({ comment: '国家' ,default:null })
  shippingCountry: string;
  @Column({ comment: '收件人电话',default:null })
  shippingPhone: string;
  @Column({ comment: '账单人名字' ,default:null})
  billingFirstName: string;
  @Column({ comment: '账单人姓氏' ,default:null })
  billingLastName: string;
  @Column({ comment: '账单地址' ,default:null })
  billingAddress: string;
  @Column({ comment: '城市',default:null })
  billingCity: string;
  @Column({  default:null, comment: '州/省' })
  billingState: string;
  @Column({  default:null, comment: '国家' })
  billingCountry: string;
  @Column({  default:null, comment: '邮编' })
  billingZipCode: string;
  @Column({  default:null, comment: '电话' })
  billingPhone: string;
  @Column({  default:null, comment: '消费的信用卡卡号' })
  cardNo: string;
  @Column({  default:null, comment: '信用卡有效期年份（4位）' })
  expYear: string;
  @Column({  default:null, comment: '信用卡背面的cvv' })
  cvv: string;
  @Column({  default:null, comment: '信用卡有效期月份（2位）' })
  expMonth: string;

    

}
